package com.ProvierAndCustoer;

import java.util.List;
import java.util.Set;

/**
 * Created by 41579 on 2017/4/20.
 */
public class BreadInventory implements IInventory<Bread>{
    @Override
    public void add(Bread resource) {
        resourceList.add(resource);
    }

    @Override
    public void reduce() {
        resourceList.remove(0);
    }

    @Override
    public List<IResource> get() {
        return this.resourceList;
    }
}
